package com.xingkeduo.dto.transter.orderserviec;

import com.xingkeduo.dto.OrderDetailResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class ServiceStatic {
    private String status;
    private String service_type;

    public void covert(ResponseUtils<OrderDetailResponseDto> orderDetailResponseDto) {
        OrderDetailResponseDto data = orderDetailResponseDto.getData();
        String serviceTypeId = data.getServiceTypeId();
        if("2".equals(serviceTypeId)){
            this.status="bang";
            this.service_type="2";
        }else if("4".equals(serviceTypeId)){
            this.status="all";
            this.service_type="1";
        }else {
            this.status="all";
            this.service_type=serviceTypeId;
        }
    }
}
